package com.bckj.freshnow.goods.convert;

import com.bckj.fastboot.core.mapstruct.MapStructConfig;
import com.bckj.freshnow.goods.entity.Goods;
import com.bckj.freshnow.goods.model.GoodsResponse;
import com.bckj.freshnow.goods.model.GoodsRequest;

import org.mapstruct.Mapper;

/**
 * 商品基础表(Goods)数据转换
 *
 * @author makejava
 * @since 2025-04-21 16:19:02
 */
@Mapper(config = MapStructConfig.class)
public interface GoodsConvert {

    Goods request2Bean(GoodsRequest request);
    
    GoodsResponse bean2Response(Goods bean);
}
